<include file='Public:header'/>
<include file='Public:menu'/>
  <div id="main-content">
  
    <h2>编辑图片</h2>
    <p id="page-intro">有什么可以帮助您？</p>
    <!-- End .shortcut-buttons-set -->
    <div class="clear"></div>
    <!-- End .clear -->
    <div class="content-box">
      <!-- Start Content Box -->
      <div class="content-box-header">
        <h3>编辑图片</h3>
        <div class="clear"></div>
      </div>
      <!-- End .content-box-header -->
      <div class="content-box-content">
        
        <!-- End #tab1 -->
        <div class="tab-content default-tab" id="tab2">
          <form action="__URL__/editAction/id/{$data.id}/mid/{$data.mid}/type/{$type}/c/{$c}" method="post" enctype="multipart/form-data">
            <fieldset>
            <!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->
            <label>选择产品</label>
              <select name="gid" class="small-input">
              	<foreach name="good" item="vo">
                <option value="{$vo.id}" <?php if($vo['id'] == $data['gid']){echo 'selected="selected"';}?>>{$vo.title}</option>
                </foreach>
              </select>
            <p>
              <label>商品列表图片</label>
              <img src="__ROOT__/Uploads/{$data.img}" style="width: 150px; height: 150px;"/>
              <br />
              <input type="file"  name="photo">
              <br />
            </p>
            <p>
              <input class="button" type="submit" value="提交" />
            </p>
            </fieldset>
            <div class="clear"></div>
            <!-- End .clear -->
          </form>
        </div>
        <!-- End #tab2 -->
      </div>
      <!-- End .content-box-content -->
    </div>
    <div class="clear"></div>
    
<include file='Public:footer'/>